package com.threeti.jiayusms.infrastructure.defaulttemplate;

import com.threeti.jiayusms.domain.model.defaulttemplate.DefaultCommunicationTemplate;
import com.threeti.jiayusms.framework.dao.GenericCustomKeyDao;
import com.threeti.jiayusms.framework.util.DynaSearchCriteria;
import com.threeti.jiayusms.framework.util.PagedListHandler;

public interface DefaultCommunicationTemplateDao extends GenericCustomKeyDao<String, DefaultCommunicationTemplate> {


  /** 取得当前默认启用的模板 */
  DefaultCommunicationTemplate findDefaultEnabledTemplate();
  
  PagedListHandler<DefaultCommunicationTemplate> findAllDefaultTemplatesByPage(int currentPageIndex, int startingIndex);
  
  PagedListHandler<DefaultCommunicationTemplate> findDefaultTemplatesByPage(DynaSearchCriteria dynaSearchCriteria, int currentPageIndex, int startingIndex);

}
